﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="AnyOffice.general.system.bbs.index" %>
<%@ Reference Page="~/general/index.aspx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>论坛设置</title>
		
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script>
function delete_board(board_id)
{
 msg='确认要删除该论坛么？这将删除该论坛中的所有文章且不可恢复！';
 if(window.confirm(msg))
 {
    URL="delete.aspx?board_id="+board_id;
    window.location=URL;
 }
}
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/notify_new.gif" align="absMiddle"><span class="big3"> 
							新建论坛</span><br>
					</td>
				</tr>
			</table>
			<div align="center">
				<input type="button" value="新建论坛" class="BigButton" onClick="location='new.aspx';" title="新建论坛">
			</div>
			<br>
			<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
				<tr>
					<td background="/images/dian1.gif" width="100%"></td>
				</tr>
			</table>
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/notify_open.gif" align="absMiddle"><span class="big3">
							管理论坛</span><br>
					</td>
				</tr>
			</table>
			<br>
			<div align="center">
				<asp:Repeater id="rptBbs" runat="server" EnableViewState="False">
					<HeaderTemplate>
						<table border="0" cellspacing="1" width="500" class="small" bgcolor="#000000" cellpadding="3">
							<tr class="TableHeader">
								<td nowrap align="center">序号</td>
								<td nowrap align="center">论坛主题</td>
								<td align="center">所属部门</td>
								<td nowrap align="center">匿名发帖</td>
								<td nowrap align="center">版主</td>
								<td nowrap align="center">操作</td>
							</tr>
					</HeaderTemplate>
					<ItemTemplate>
						<tr class="TableLine1">
							<td align="center"><%#Eval("BoardNo")%></td>
							<td align="center"><%#Eval("BoardName")%></td>
							<td align="left"><%#Eval("DeptName")%></td>
							<td align="center"><%#Convert.ToBoolean(Eval("IsAnonymous")) == true ? "允许" : "禁止"%></td>
							<td align="left"><%#Eval("OwnerName")%></td>
							<td nowrap align="center">
								<a href="edit.aspx?board_id=<%#Eval("BoardId")%>">编辑</a> <a href="javascript:delete_board(<%#Eval("BoardId")%>);">删除</a>
							</td>
						</tr>
					</ItemTemplate>
					<AlternatingItemTemplate>
					<tr class="TableLine2">
							<td align="center"><%#Eval("BoardNo")%></td>
							<td align="center"><%#Eval("BoardName")%></td>
							<td align="left"><%#Eval("DeptName")%></td>
							<td align="center"><%#Convert.ToBoolean(Eval("IsAnonymous")) == true ? "允许" : "禁止"%></td>
							<td align="left"><%#Eval("OwnerName")%></td>
							<td nowrap align="center">
								<a href="edit.aspx?board_id=<%#Eval("BoardId")%>">编辑</a> <a href="javascript:delete_board(<%#Eval("BoardId")%>);">删除</a>
							</td>
						</tr>
					</AlternatingItemTemplate>
					<FooterTemplate>
						</table>
					</FooterTemplate>
				</asp:Repeater>
			</div>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
		</form>
	</body>
</HTML>
